

export class Widget {

    static {
        globalThis.__Widget__ = new Widget();
    }

    get active(): boolean {
        return Deno.core.ops.opGetWidgetActive(this);
    }

    set active(value: boolean) {
        Deno.core.ops.opSetWidgetActive(this, value)
    }

    get width(): number {
        return Deno.core.ops.opGetWidgetWidth(this);
    }

    set width(value: number) {
        Deno.core.ops.opSetWidgetWidth(this, value)
    }

    get height(): number {
        return Deno.core.ops.opGetWidgetHeight(this);
    }

    set height(value: number) {
        Deno.core.ops.opSetWidgetHeight(this, value)
    }
}